<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Hello World</title>
  <script src="https://cdn.bootcdn.net/ajax/libs/react/18.2.0/umd/react.development.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/react-dom/18.2.0/umd/react-dom.development.js"></script>
</head>
<body>
<div id="root"></div>
<script>
  const div = React.createElement('div', {id: 'hello'}, '我是React创建的div');
  // console.log(div);
  const root = ReactDOM.createRoot(document.getElementById('root'));
  root.render(div);
</script>
</body>
</html>